package com.zhx.threadcoreknowledge.threadobjectclasscommonmethod;

/**
 * @author ：zhanghaixuan
 * @date ：Created in 2019-10-04 08:52
 * 用途         ： Thread 个个属性的演示
 */
public class ThreadProperty {


    public static void main(String[] args) {
        System.out.println("主线程的ID号是:"+Thread.currentThread().getId());

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("子线程的ID号是:"+Thread.currentThread().getId());
            }
        }).start();
    }
}
